namespace Asmex.FileViewer
{
    using Asmex.ObjViewer;
    using System;

    public class ExportRecord
    {
        private uint _addr;
        private string _name;
        private uint _ord;

        public ExportRecord(uint ord, uint addr, string name)
        {
            this._ord = ord;
            this._addr = addr;
            this._name = name;
        }

        public override string ToString()
        {
            return string.Concat(new object[] { this._name, ": Ordinal ", this._ord, ", Addr ", this._addr.ToString("X8") });
        }

        [ObjViewer(Hex=true)]
        public uint Address
        {
            get
            {
                return this._addr;
            }
        }

        public string Name
        {
            get
            {
                return this._name;
            }
        }

        public uint Ordinal
        {
            get
            {
                return this._ord;
            }
        }
    }
}
